package com.ddm.entity.webEntity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 规章制度信息
 * </p>
 *
 * @author hpq
 * @since 2025/05/08
 */
@Data
@ApiModel(value = "Regulation对象", description = "规章制度信息实体")
public class Regulation {

    @ApiModelProperty(value = "规章制度表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "规章制度名称")
    private String name;

    @ApiModelProperty(value = "发布日期")
    @TableField("publish_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishDate;

    @ApiModelProperty(value = "规章制度链接")
    private String url;

    @ApiModelProperty(value = "规章制度 PDF 文件路径")
    private String pdf;

    @ApiModelProperty(value = "发布部门")
    @TableField("publish_department")
    private String publishDepartment;

    @ApiModelProperty(value = "生效时间")
    @TableField("valid_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime validTime;

    @ApiModelProperty(value = "级数")
    @TableField("level")
    private String level;
}
